import request from '@/utils/request'
const module = '/admin/product/category'

//根据parentId查询catagory
export const GetCategoryByPid = parentId => {
  return request.get(`${module}/categoryList/${parentId}`)
}

//导出数据
export const exportCateData = () => {
  return request.get(`${module}/exportData`, { responseType: 'blob' })
}
